import React, { useContext } from "react";
import { LowCodeContext } from "./Provider";
import LowCodeRenderer from "./Renderer";



const LowCodePreview = () => {
  const { items} = useContext(LowCodeContext);
  // if(!items.properties){
  //   return null
  // }
  // const xProps = items.properties["x-component-props"];
  // const _items = xProps.items
  return (<LowCodeRenderer  items={items}/>);
};
export default LowCodePreview;
